package top.z.orm.handle.util;

public class StringUtils {

    public static boolean isBlank(final String str) {
        return str == null || "".equals(str.trim());
    }

    public static boolean isNotBlank(final String str) {
        return str != null && !"".equals(str.trim());
    }

    public static boolean isEmpty(final String str) {
        return str == null || str.length() == 0;
    }

    public static boolean isNotEmpty(final String str) {
        return !isEmpty(str);
    }

    public static boolean isEmpty(final String[] strings) {
        return strings == null || strings.length == 0;
    }

    public static boolean isNotEmpty(final String[] strings) {
        return !isEmpty(strings);
    }
}